﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Hinh.ascx.cs" Inherits="Controls_Hinh" %>

<asp:DataList ID="dlProdImg" runat="server" RepeatDirection="Horizontal" 
    RepeatLayout="Flow">
    <ItemTemplate>
            <a href='<%# DataAccess.Link.ToProduct(Eval("MaHangHoa").ToString()) %>'>
                <img src='<%# DataAccess.Link.ToProductImage(Eval("HinhAnh").ToString()) %>' alt='<%#HttpUtility.HtmlEncode(Eval("TenHangHoa").ToString()) %>' />
            </a>
    </ItemTemplate>
</asp:DataList>

